Skip to content

Switch to OpenSSL 3.4 and Ubuntu 22.04#21

Draft
pschlan wants to merge 5 commits intomainfrom
ubuntu-22.04-openssl-3.4.1
Draft

Switch to OpenSSL 3.4 and Ubuntu 22.04#21
pschlan wants to merge 5 commits intomainfrom
ubuntu-22.04-openssl-3.4.1

Conversation

@pschlan
Copy link
Contributor

@pschlan pschlan commented Mar 10, 2025

Cherry-picked from main...b1gMail-OSS:b1gMailServer:ubuntu22.04-env + added improvements on top

@pschlan pschlan marked this pull request as draft March 10, 2025 12:59
Comment on lines +1982 to +1994
std::vector<uint8_t> hash(EVP_MD_size(EVP_sha256()));

if (EVP_DigestInit_ex(sha256, EVP_sha256(), nullptr) && EVP_DigestUpdate(sha256, buffer, length) && EVP_DigestFinal_ex(sha256, hash.data(), nullptr))
{
char hexBuff[3];
for(std::size_t i=0; i < hash.size(); i++)
{
snprintf(hexBuff, 3, "%02X", hash[i]);
result.append(hexBuff);
}
}

EVP_MD_CTX_free(sha256);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be tested

@pschlan pschlan changed the title [Test] Build with OpenSSL 3.4 and Ubuntu 22.04 Switch to OpenSSL 3.4 and Ubuntu 22.04 Mar 10, 2025
@@ -1 +1 @@
3306
3310
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should only be bumped by one, probably

Comment on lines 232 to 241
if(strcmp(cfg->Get("user_space_add"), "1") == 0)
{
db->Query("SELECT bm60_users.id, bm60_users.traffic_up, bm60_users.traffic_down, bm60_gruppen.traffic+bm60_users.traffic_add AS traffic, bm60_gruppen.wd_open_kbs, bm60_gruppen.id FROM bm60_users,bm60_gruppen WHERE bm60_users.email='%q' AND bm60_gruppen.id=bm60_users.gruppe AND bm60_gruppen.share='yes' AND bm60_gruppen.webdisk>0",
res = db->Query("SELECT bm60_users.id, bm60_users.traffic_up, bm60_users.traffic_down, bm60_gruppen.traffic+bm60_users.traffic_add AS traffic, bm60_gruppen.wd_open_kbs, bm60_gruppen.id FROM bm60_users,bm60_gruppen WHERE bm60_users.email='%q' AND bm60_gruppen.id=bm60_users.gruppe AND bm60_gruppen.share='yes' AND bm60_gruppen.webdisk>0",
szSearchUser);
}
else
{
db->Query("SELECT bm60_users.id, bm60_users.traffic_up, bm60_users.traffic_down, bm60_gruppen.traffic, bm60_gruppen.wd_open_kbs, bm60_gruppen.id FROM bm60_users,bm60_gruppen WHERE bm60_users.email='%q' AND bm60_gruppen.id=bm60_users.gruppe AND bm60_gruppen.share='yes' AND bm60_gruppen.webdisk>0",
res = db->Query("SELECT bm60_users.id, bm60_users.traffic_up, bm60_users.traffic_down, bm60_gruppen.traffic, bm60_gruppen.wd_open_kbs, bm60_gruppen.id FROM bm60_users,bm60_gruppen WHERE bm60_users.email='%q' AND bm60_gruppen.id=bm60_users.gruppe AND bm60_gruppen.share='yes' AND bm60_gruppen.webdisk>0",
szSearchUser);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably remove HTTP support entirely, at it is incomplete and - obviously - untested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants